package lab02.Test23;
     import java.util.Calendar;
import java.util.Scanner;
/**
 * Created by tanfei on 2017/11/1.
 */
public class Test {
    public static void main(String[] args) {
        Calendar time=Calendar.getInstance();
        Scanner scan=new Scanner(System.in);
        int Y,M,D;
        System.out.println("年：");
        Y=scan.nextInt();
        System.out.println("月：");
        M=scan.nextInt();
        System.out.println("日：");
        D=scan.nextInt();
        time.set(Y,M-1,D);
        int Day=time.get(Calendar.DAY_OF_WEEK);
        System.out.println("星期"+(Day-1));
    }
}
